<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
        <h:form id="tabMenu">
            <p:tabMenu activeIndex="#{menuBean.currentMenu.id}">  
                <c:forEach items="#{menuBean.menus}" var="nodeMenu">
                    <p:menuitem value="#{nodeMenu.title}" url="#{nodeMenu.url}" icon="#{nodeMenu.icon}"/>  
                </c:forEach>
            </p:tabMenu>  
        </h:form>
</ui:composition>